package com.bestv.search.common.service;

import com.bestv.search.common.dataSource.DataSourceKey;
import com.bestv.search.common.model.SearchFieldInfo;

import java.util.List;

public interface SearchConfigManager {

    List<SearchFieldInfo> getSearchFieldInfos(DataSourceKey key);

    List<SearchFieldInfo> getSearchFieldInfos(DataSourceKey key, int start, int limit);

    SearchFieldInfo getSearchFieldInfo(DataSourceKey key, Long id);

    SearchFieldInfo deleteSearchFieldInfo(DataSourceKey key, Long id);

    SearchFieldInfo saveSearchFieldInfo(DataSourceKey key, SearchFieldInfo sfi);

    int getSearchFieldInfosCount(DataSourceKey key);

    SearchFieldInfo getSearchInfoByName(DataSourceKey key, String name);

    SearchFieldInfo getById(DataSourceKey key, Long id);
}
